import request from '@/utils/request'
export function getContributionProjects (params) {
  return request({
    url: '/api/Case/ContributionProject/GetContributionProjects',
    method: 'get',
    params
  })
}

export function getCaseEmployeeTypes () {
  return request({
    url: '/api/Case/ContributionProject/GetCaseEmployeeTypes',
    method: 'get',
  })
}

export function addContributionProject (data) {
  return request({
    url: '/api/Case/ContributionProject/AddContributionProject',
    method: 'post',
    data
  })
}

export function editContributionProject (data) {
  return request({
    url: '/api/Case/ContributionProject/EditContributionProject',
    method: 'post',
    data
  })
}

export function deleteContributionProject (id) {
  return request({
    url: '/api/Case/ContributionProject/DeleteContributionProject',
    method: 'get',
    params: {
      id
    }
  })
}